//
//  SDVoiceTipView.h
//  for_test
//
//  Created by Carlson Lee on 2017/4/5.
//  Copyright © 2017年 Carlson Lee. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef NS_ENUM(NSInteger, TIP_TYPE){
    TIP_TYPE_STR,//默认只有文字
    TIP_TYPE_IMG_STR//图片+文字
};

typedef NS_ENUM(NSInteger, TIP_DERECTION){
    TIP_DERECTION_HOR,//默认水平方向
    TIP_DERECTION_VER
};

@protocol SDVoiceTipViewDelegate;
@interface SDVoiceTipView : UIView

@property(nonatomic, assign)id<SDVoiceTipViewDelegate> delegate;
@property(nonatomic, strong)UILabel* tipLab;
@property(nonatomic, strong)NSString* imgStr;
@property(nonatomic, strong)NSString* tipStr;

- (instancetype)initWithType:(TIP_TYPE )type direction:(TIP_DERECTION )direction font:(UIFont* )font;

@end

@protocol SDVoiceTipViewDelegate <NSObject>

@optional
- (void)sdVoiceTipViewSelect;

@end
